#include"log.hpp"

using namespace LogModule;

int main()
{

    //用C++版的流,实现可变参数

    //日志输出格式
    //LOG(DEBUG) << "hello " << 3.14 << a << b;
    //会被替换成下面格式
    //logger(level ,__FILE__ ,__LINE__)<< "hello " << 3.14 << a << b;    //()执行完构建一个临时的LogMessage,临时的LogMessage会执行<<
    //LogMessage<< "hello " << 3.14 << a << b;        //LogMessage重载了<<
    ENABLE_FILE_LOG();

    LOG(LogLevel::INFO)<<"hello"<<666;
    
    return 0;
}